<div ng-include="'tpl/base/web/header.html'"></div>
<div ng-include="'tpl/base/web/search.html'"></div>

<div ng-controller="fatherCtrl">
    <div ng-controller="leftTab1" id="leftTab1" class="clearfix">
        <div ng-include="'tpl/base/web/leftTab.html'"></div>
        <div class="interface fl clearfix">

            <!-- Nav tabs -->
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab" onclick="return false;">商户管理</a></li>
                <!--<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab" onclick="return false;">新店审批</a></li>-->
            </ul>

            <!-- Tab panes -->
            <div class="tab-content">
                <div class="mask" ng-show="layerOutShow"></div>
                <!--商户管理-->
                <div role="tabpanel" class="tab-pane active" id="home">
                    <div class="merchantSearch">
                        <ul>
                            <li>
                                <!--<label><span>用户名：</span><input type="text"></label>-->
                                <label style="margin-right: 55px"><span>商户名称：</span><input type="text" ng-model="searchMsg.storeName"></label>
                                <label><span>店主姓名：</span><input type="text" ng-model="searchMsg.name"></label>
                            </li>

                            <li>
                                <label style="margin-right: 55px"><span>联系方式：</span><input type="text" ng-model="searchMsg.phoneNum"></label>
                                <label class="addressBox">
                                    <span>店铺地址：</span>
                                    <select name="proName" ng-options="v.provinceid as v.province for v in provinces" ng-model="provinceId" ng-change="getCity();">
                                        <option value="">省</option>
                                    </select>

                                    <select name="cityName" ng-options="v.cityid as v.city for v in cities" ng-model="cityId" ng-change="getArea();">
                                        <option value="">市</option>
                                    </select>

                                    <select name="areaName" ng-options="v.areaid as v.area for v in areas" ng-model="areaId"  ng-change="getAreaName();">
                                        <option value="">区</option>
                                    </select>
                                    <input type="text" ng-model="searchMsg.address">
                                </label>
                            </li>
                            <li>
                                <button class="searchBtn" ng-click="searcBtnClick();">搜索</button>
                            </li>
                        </ul>
                    </div>

                    <div class="merchantList">
                        <ul>
                            <li class="addM" ng-click="addMerchantBtn();"><img src="img/icon/addMer.png" alt="">新增商户</li>
                            <li class="auditM" ng-click="auditMerchantBtn();"><img src="img/icon/addMer.png" alt="">审核通过</li>
                            <li class="deleteM" ng-click="deleteMerchantBtn();"><img src="img/icon/delete.png" alt="">删除商户</li>
                        </ul>

                        <table>
                            <tr class="th">
                                <td class="input"><input type="checkbox" ng-model="select_all" ng-change="selectAll($event)"></td>
                                <!--<td>用户编号</td>-->
                                <td>用户名</td>
                                <td>密码</td>
                                <td>商户名称</td>
                                <td>店主姓名</td>
                                <td>联系方式</td>
                                <td>地址</td>
                                <td>审核状态</td>
                                <td>操作</td>
                            </tr>

                            <tr ng-repeat="item in storeTable" on-finish-render-filters>
                                <td class="input"><input type="checkbox" ng-model="item.checked" ng-change="selectOne($event)"></td>
                                <!--<td>{{item.id}}</td>-->
                                <td>{{item.phoneNum}}</td>
                                <td>*****</td>
                                <td>{{item.storeName}}</td>
                                <td>{{item.name}}</td>
                                <td>{{item.phoneNum}}</td>
                                <td>{{item.address}}</td>
                                <td style="color:green;" ng-show="item.auditSign=='Y'">审核通过</td>
                                <td style="color:red;" ng-show="item.auditSign=='NO_AUDIT'">未审核</td>
                                <td class="operate" ng-click="resetPass();">重置密码</td>
                            </tr>

                            <!--<tr ng-repeat="i in list">-->
                            <!--<td><input type="checkbox" ng-model="i.checked" ng-change="selectOne()"></td>-->
                            <!--<td>1</td>-->
                            <!--<td>张女士</td>-->
                            <!--<td>88888</td>-->
                            <!--<td>名称</td>-->
                            <!--<td>店主姓名</td>-->
                            <!--<td>联系方式</td>-->
                            <!--<td>地址</td>-->
                            <!--<td class="operate">重置密码</td>-->
                            <!--</tr>-->



                        </table>
                    </div>

                    <div class="home_layerOut" ng-show="layerOutShow">
                        <h3><img src="img/icon/cha.png" alt="" ng-click="closeLay();"></h3>
                        <div>
                            <input type="text" placeholder="店铺名" ng-model="addMerchantMsg.userObject.storeName">
                            <input type="text" placeholder="店主姓名" ng-model="addMerchantMsg.userObject.name">
                            <!--<input type="text" placeholder="店铺地址" ng-model="addMerchantMsg.userObject.address">-->
                            <select name="proName" ng-options="v.provinceid as v.province for v in provinces" ng-model="provinceId" ng-change="getCity();">
                                <option value="">请选择省份</option>
                            </select>

                            <select name="cityName" ng-options="v.cityid as v.city for v in cities" ng-model="cityId" ng-change="getArea();">
                                <option value="">请选择城市</option>
                            </select>

                            <select name="areaName" ng-options="v.areaid as v.area for v in areas" ng-model="areaId"  ng-change="getAreaName();">
                                <option value="">请选择区</option>
                            </select>

                            <input type="text" placeholder="详细地址" ng-model="addMerchantMsg.userObject.address">
                            <input type="text" placeholder="手机号码" ng-model="addMerchantMsg.userObject.phoneNum">
                            <input type="password" placeholder="密码" ng-model="addMerchantMsg.password1">
                            <input type="password" placeholder="确认密码" ng-model="addMerchantMsg.password2">
                            <input type="button" value="提交" ng-click="layerOutSub();">
                        </div>

                    </div>

                    <div class="paging" >
                        <div class="clearfix box-between">
                            <!--<div class="branches fl">-->
                            <!--<select name="" id="">-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">4</option>-->
                            <!--</select>-->
                            <!--<span>条 / 页</span>-->
                            <!--</div>-->

                            <div class="page fl">
                                <span class="fl pageTurn prev" ng-click="firstPageBtn();">首页</span>
                                <span class="fl pageTurn prev" ng-click="prevPageBtn();">上一页</span>
                                <!--<ul class="fl">-->
                                <!--<li>1</li>-->
                                <!--<li>2</li>-->
                                <!--<li>3</li>-->
                                <!--<li>4</li>-->
                                <!--<li>5</li>-->
                                <!--<li>6</li>-->
                                <!--<li>7</li>-->
                                <!--<li>8</li>-->

                                <!--</ul>-->
                                <div class="pageTo fl">
                                    <p>转到 <input type="text" ng-model="page1" ng-keyup="myKeyup13($event)"> 页</p>
                                </div>
                                <span class="fl pageTurn next" ng-click="nextPageBtn();">下一页</span>
                                <span class="fl pageTurn next toLast" ng-click="lastPageBtn();">尾页</span>
                                <p class="fl">共 <span>{{pageMsg.totalPages}}</span> 页  /  <span>{{pageMsg.totalElements}}</span> 条数据</p>
                            </div>
                        </div>


                    </div>

                </div>

                <!--新店审批-->
                <!--<div role="tabpanel" class="tab-pane" id="profile">-->

                <!--<div class="merchantSearch">-->
                <!--<ul>-->
                <!--<li class="box-between">-->
                <!--<label><span>用户名：</span><input type="text"></label>-->
                <!--<label><span>商户名称：</span><input type="text"></label>-->
                <!--<label><span>店主姓名：</span><input type="text"></label>-->
                <!--</li>-->

                <!--<li class="box-between">-->
                <!--<label><span>联系方式：</span><input type="text"></label>-->
                <!--<label class="addressBox">-->
                <!--<span>店铺地址：</span>-->
                <!--<select name="proName" ng-options="v.provinceid as v.province for v in provinces" ng-model="provinceId" ng-change="getCity();">-->
                <!--<option value="">省</option>-->
                <!--</select>-->

                <!--<select name="cityName" ng-options="v.cityid as v.city for v in cities" ng-model="cityId" ng-change="getArea();">-->
                <!--<option value="">市</option>-->
                <!--</select>-->

                <!--<select name="areaName" ng-options="v.areaid as v.area for v in areas" ng-model="areaId"  ng-change="getAreaName();">-->
                <!--<option value="">区</option>-->
                <!--</select>-->
                <!--<input type="text">-->
                <!--</label>-->
                <!--</li>-->
                <!--<li>-->
                <!--<button class="searchBtn">搜索</button>-->
                <!--</li>-->
                <!--</ul>-->
                <!--</div>-->

                <!--<div class="merchantList">-->
                <!--<ul>-->
                <!--<li class="addM"><img src="img/icon/addMer.png" alt="">审核通过</li>-->
                <!--<li class="deleteM"><img src="img/icon/delete.png" alt="">删除</li>-->
                <!--</ul>-->

                <!--<table>-->
                <!--<tr class="th">-->
                <!--<td><input type="checkbox" ng-model="select_all1" ng-change="selectAll1($event)"></td>-->
                <!--&lt;!&ndash;<td>用户编号</td>&ndash;&gt;-->
                <!--<td>用户名</td>-->
                <!--<td>密码</td>-->
                <!--<td>商户名称</td>-->
                <!--<td>店主姓名</td>-->
                <!--<td>联系方式</td>-->
                <!--<td>地址</td>-->
                <!--<td>操作</td>-->
                <!--</tr>-->

                <!--<tr ng-repeat="item in storeTable">-->
                <!--<td><input type="checkbox" ng-model="item.checked" ng-change="selectOne1($event)"></td>-->
                <!--&lt;!&ndash;<td>{{item.id}}</td>&ndash;&gt;-->
                <!--<td>{{item.phoneNum}}</td>-->
                <!--<td>*****</td>-->
                <!--<td>{{item.storeName}}</td>-->
                <!--<td>{{item.name}}</td>-->
                <!--<td>{{item.phoneNum}}</td>-->
                <!--<td>{{item.address}}</td>-->
                <!--<td class="operate" ng-click="resetPass();">重置密码</td>-->
                <!--</tr>-->

                <!--</table>-->
                <!--</div>-->

                <!--<div class="paging" >-->
                <!--<div class="clearfix">-->
                <!--&lt;!&ndash;<div class="branches fl">&ndash;&gt;-->
                <!--&lt;!&ndash;<select name="" id="">&ndash;&gt;-->
                <!--&lt;!&ndash;<option value="">1</option>&ndash;&gt;-->
                <!--&lt;!&ndash;<option value="">1</option>&ndash;&gt;-->
                <!--&lt;!&ndash;<option value="">1</option>&ndash;&gt;-->
                <!--&lt;!&ndash;<option value="">4</option>&ndash;&gt;-->
                <!--&lt;!&ndash;</select>&ndash;&gt;-->
                <!--&lt;!&ndash;<span>条 / 页</span>&ndash;&gt;-->
                <!--&lt;!&ndash;</div>&ndash;&gt;-->

                <!--<div class="page fl">-->
                <!--<span class="fl pageTurn prev">首页</span>-->
                <!--<span class="fl pageTurn prev" ng-click="prevPageBtn();">上一页</span>-->
                <!--&lt;!&ndash;<ul class="fl">&ndash;&gt;-->
                <!--&lt;!&ndash;<li>1</li>&ndash;&gt;-->
                <!--&lt;!&ndash;<li>2</li>&ndash;&gt;-->
                <!--&lt;!&ndash;<li>3</li>&ndash;&gt;-->
                <!--&lt;!&ndash;<li>4</li>&ndash;&gt;-->
                <!--&lt;!&ndash;<li>5</li>&ndash;&gt;-->
                <!--&lt;!&ndash;<li>6</li>&ndash;&gt;-->
                <!--&lt;!&ndash;<li>7</li>&ndash;&gt;-->
                <!--&lt;!&ndash;<li>8</li>&ndash;&gt;-->

                <!--&lt;!&ndash;</ul>&ndash;&gt;-->
                <!--<div class="pageTo fl">-->
                <!--<p>转到 <input type="text" ng-model="page1" ng-keyup="myKeyup13($event)"> 页</p>-->
                <!--</div>-->
                <!--<span class="fl pageTurn next" ng-click="nextPageBtn();">下一页</span>-->
                <!--<span class="fl pageTurn next">尾页</span>-->
                <!--<p class="fl">共 <span>{{pageMsg.totalPages}}</span> 页  /  <span>{{pageMsg.totalElements}}</span> 条数据</p>-->
                <!--</div>-->
                <!--</div>-->


                <!--</div>-->

                <!--</div>-->

            </div>

        </div>

    </div>
</div>

<div ng-include="'tpl/base/web/bottom.html'"></div>














